//
//  HeaderUpDown.h
//  优学荟管理系统
//
//  Created by edz on 2017/11/10.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#ifndef HeaderUpDown_h
#define HeaderUpDown_h
#import <AVFoundation/AVFoundation.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <UIKit/UIKit.h>
#import "UIView+Category.h"
//#import "UIImage+imageForColor.h"
//#import "LSSAlertView.h"
#define RGBColor(r,g,b) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:1.0f]

#define kWeakSelf(self)  __weak __typeof(&*self)weakSelf = self;


#define kSYSTEM_VERSION_iOS8Later  [SYSTEM_VERSION integerValue] >=8

#define kSYSTEM_VERSION_iOS9Later  [SYSTEM_VERSION integerValue] >=9

#define kSYSTEM_VERSION_iOS10Later [[[[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."] objectAtIndex:0] integerValue] >= 10







#define RACObserve(TARGET, KEYPATH) \
({ \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wreceiver-is-weak\"") \
__weak id target_ = (TARGET); \
[target_ rac_valuesForKeyPath:@keypath(TARGET, KEYPATH) observer:self]; \
_Pragma("clang diagnostic pop") \
})



#endif /* HeaderUpDown_h */
